﻿@model Scrumrun.Models.Project

@{
    ViewBag.Title = "Create new project";
}

<h2>Create new project</h2>

@*action="/Project/Create" method="post"*@

@using (Html.BeginForm("Create", "Project", FormMethod.Post))
{

    @Html.ValidationSummary(true)
    @Html.AntiForgeryToken()

    <fieldset>
        <legend>Project</legend>

        <div class="control-group">
            @Html.LabelFor(model => model.Name, new { @Class = "control-label" })

            <div class="controls">
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.StartDate, new { @Class = "control-label" })

            <div class="controls">
                @Html.EditorFor(model => model.StartDate)
                @Html.ValidationMessageFor(model => model.StartDate)
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.EndDate, new { @Class = "control-label" })

            <div class="controls">
                @Html.EditorFor(model => model.EndDate)
                @Html.ValidationMessageFor(model => model.EndDate)
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.NumOfIterationDay, new { @Class = "control-label" })

            <div class="controls">
                @Html.EditorFor(model => model.NumOfIterationDay) (It can be from 2 days to 60 days)
                @Html.ValidationMessageFor(model => model.NumOfIterationDay)
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.WorkingDaysOnly, new { @Class = "control-label" })

            <div class="controls">
                @Html.EditorFor(model => model.WorkingDaysOnly)
                @Html.ValidationMessageFor(model => model.WorkingDaysOnly)
            </div>
        </div>

        <div class="control-group">
            <div class="controls">
                <input type="submit" value="Create" class="btn btn-success" />
            </div>
        </div>

    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index", null, new { @class = "btn" })
</div>



@section Scripts {
   
}
